package decorator.source;

/**
 * 同ConcreteDecoratorA功能
 * @Author: Chen Guang
 * @Date: 2019/3/29 0029 上午 10:31
 */
public class ConcreteDecoratorB extends Decorator{
    private String addedState;

    @Override
    public void operation() {
        super.operation();
        //额外的操作
        addedState = "ConcreteDecoratorB";
        System.out.println("具体装饰对象B的方法" + addedState);
    }
}
